import request from "@/utils/request";

// 登录 获取用户token
export function login(data) {
  return request({
    url: "/sys/login",
    method: "POST",
    data,
  });
}

// 获取用户基本资料
export function getUserInfo() {
  return request({
    url: "/sys/profile",
    method: "POST",
  });
}

// 获取员工基本信息 图片
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
  });
}

export function logout() {}
